package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;


/**
* Created by Mybatis Generator on 2020/03/11
*/
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Department {

	private Long id;

    private String name;

    private String sn;

    public String getJson(){
		HashMap map = new HashMap();
		map.put("id",this.id);
		map.put("name",this.name);
		map.put("sn",this.sn);
       return JSON.toJSONString(map);
    }
}